function fn () {
  var btn = document.createElement('button')
  btn.innerHTML = '1'
  document.body.appendChild(btn)
  
  btn.onclick = function () {
    btn.innerHTML = Number(btn.innerHTML) + 1
  }
}

export default fn